package com.ff.xyh.common.entity.userfront;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户限制表
 * </p>
 *
 * @author ff
 * @since 2022-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserRestricted对象", description="用户限制表")
public class UserRestricted implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "对应前端用户ID")
    private String userId;

    @ApiModelProperty(value = "操作员id 对应access_user表")
    private String operatorId;

    @ApiModelProperty(value = "状态描述")
    private String statement;

    @ApiModelProperty(value = "参照restricted_status")
    private Integer status;

    @ApiModelProperty(value = "有效时间")
    private Date gmtEffective;

    @ApiModelProperty(value = "0: 正常 1: 已删除")
    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
